package cn.janescott.zone.data;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@EnableDiscoveryClient
@SpringBootApplication
@RestController
public class ZoneDataProviderApplication {

	public static void main(String[] args) {
		SpringApplication.run(ZoneDataProviderApplication.class, args);
	}

	@GetMapping("/log")
	public void log() {
		System.out.println(System.currentTimeMillis());
	}

	@GetMapping("/show")
	public String show() {
	    return "i am alive";
    }
}
